package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SearchResult {
    /**
     * 查询到的所有商品信息
     */
    private List<SkuEsModel> products;
    /**
     * 分页相关信息（当前页码、总记录数、总页码）
     */
    private Integer pageNum;
    private Long total;
    private Long totalPages;
    private List<Integer> pageNav;

    /**
     * 面包屑导航数据
     */
    private List<NavVo> navVos = new ArrayList<>();

    /**
     * 页面选择的属性id列表
     */
    private List<Long> attrIds = new ArrayList<>();



    /**
     * 品牌列表信息
     */
    private List<BrandVo> brands;

    /**
     * 类别信息
     */
    private List<CatalogVo> catalogs;

    /**
     * 属性信息
     */
    private List<AttrVo> attrs;

    @Data
    public static class NavVo {
        private String navName;
        private String navValue;
        private String navLink;
    }

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }
}
